package computer;

class students{
	String name;
	int age;
	computer c;
}

class computer{
	String brand;
	int screen;
	int storage;
	
}
public class student {
	public static void main(String args[]) {
	students stu1 = new students();
	computer com1 = new computer();
	stu1.name = "张伟";
	stu1.age = 16;
	com1.brand = "苹果";
	com1.storage = 1;
	com1.screen = 13;
	stu1.c = com1;
	students stu2 = new students();
	computer com2 = new computer();
	stu2.name = "王强";
	stu2.age = 21;
	com2.brand = "华为";
	com2.storage = 256;
	com2.screen = 16;
	stu2.c = com2;
	students stu3 = new students();
	computer com3 = new computer();
	stu3.name = "张文";
	stu3.age = 25;
	com3.brand = "惠普";
	com3.storage = 512;
	com3.screen = 14;
	stu3.c = com3;
	System.out.println("姓名："+stu1.name+"  年龄："+stu1.age+"  品牌："+com1.brand+"  内存："+com1.storage+"T"+"  屏幕大小："+com1.screen+"英寸");
	System.out.println("姓名："+stu2.name+"  年龄："+stu2.age+"  品牌："+com2.brand+"  内存："+com2.storage+"G"+"  屏幕大小："+com2.screen+"英寸");
	System.out.println("姓名："+stu3.name+"  年龄："+stu3.age+"  品牌："+com3.brand+"  内存："+com3.storage+"G"+"  屏幕大小："+com3.screen+"英寸");
	}

}

